/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; Copyright (c) 2021 STMicroelectronics.
  * All rights reserved.</center></h2>
  *
  * This software component is licensed by ST under Ultimate Liberty license
  * SLA0044, the "License"; You may not use this file except in compliance with
  * the License. You may obtain a copy of the License at:
  *                             www.st.com/SLA0044
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define TOF_I2C hi2c1
#define ESP_UART huart1
#define PWM1_TIM htim3
#define PWM2_TIM htim3
#define PWM1_CH TIM_CHANNEL_2
#define PWM2_CH TIM_CHANNEL_1
#define CAN_DEV hcan1
#define IR1_UART huart4
#define IR2_UART huart3
#define IR3_UART huart5
#define IR4_UART huart6
#define IRCFG_UART huart2
#define TRIG_Pin GPIO_PIN_13
#define TRIG_GPIO_Port GPIOC
#define LED_Y_Pin GPIO_PIN_0
#define LED_Y_GPIO_Port GPIOA
#define MP3_IO0_Pin GPIO_PIN_2
#define MP3_IO0_GPIO_Port GPIOA
#define MP3_IO1_Pin GPIO_PIN_3
#define MP3_IO1_GPIO_Port GPIOA
#define MP3_IO2_Pin GPIO_PIN_4
#define MP3_IO2_GPIO_Port GPIOC
#define MP3_IO3_Pin GPIO_PIN_5
#define MP3_IO3_GPIO_Port GPIOC
#define MP3_IO4_Pin GPIO_PIN_0
#define MP3_IO4_GPIO_Port GPIOB
#define MP3_IO5_Pin GPIO_PIN_1
#define MP3_IO5_GPIO_Port GPIOB
#define MP3_IO6_Pin GPIO_PIN_7
#define MP3_IO6_GPIO_Port GPIOE
#define MP3_IO7_Pin GPIO_PIN_8
#define MP3_IO7_GPIO_Port GPIOE
#define OLED_CS_Pin GPIO_PIN_9
#define OLED_CS_GPIO_Port GPIOE
#define OLED_DC_Pin GPIO_PIN_10
#define OLED_DC_GPIO_Port GPIOE
#define OLED_RST_Pin GPIO_PIN_11
#define OLED_RST_GPIO_Port GPIOE
#define OLED_D1_Pin GPIO_PIN_12
#define OLED_D1_GPIO_Port GPIOE
#define OLED_D0_Pin GPIO_PIN_13
#define OLED_D0_GPIO_Port GPIOE
#define EXT_IO_Pin GPIO_PIN_8
#define EXT_IO_GPIO_Port GPIOD
#define EXT_LED1_Pin GPIO_PIN_9
#define EXT_LED1_GPIO_Port GPIOD
#define EXT_LED2_Pin GPIO_PIN_10
#define EXT_LED2_GPIO_Port GPIOD
#define ESP_IO1_Pin GPIO_PIN_0
#define ESP_IO1_GPIO_Port GPIOE
#define ESP_IO0_Pin GPIO_PIN_1
#define ESP_IO0_GPIO_Port GPIOE
/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */

/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
